package utils

import "time"

var (
	TimeZone = time.FixedZone("CST", 28800)
)

func Date(format string, unix int64) string {
	date := time.Unix(unix, 0).In(TimeZone)
	return date.Format(format)
}

func Nowtime() int64 {
	return time.Now().In(TimeZone).Unix()
}
